package com.cn.wanxi.util.dao.impl;

import com.cn.wanxi.util.dao.INavDao;
import com.cn.wanxi.util.model.CommunalTitle;
import com.cn.wanxi.util.model.ContactModel;
import com.cn.wanxi.util.model.LogoModel;
import com.cn.wanxi.util.model.NavModel;
import com.cn.wanxi.util.utils.LogoUtile;
import com.cn.wanxi.util.utils.NavUtile;

import java.util.ArrayList;
import java.util.List;

public class NavDao implements INavDao {
    NavUtile navUtile =new NavUtile();
//    导航跳转链接
    @Override
    public List<NavModel> Nav() {
        List<NavModel> navDaos =navUtile.readNav() ;
        return navDaos;
    }
//导航标题
    @Override
    public LogoModel Logo() {
        LogoUtile logoUtile =new LogoUtile();
        LogoModel logos =logoUtile.readLogo() ;
        return logos;
    }
//    头部联系方式
    @Override
    public List<ContactModel> contac() {
        List<ContactModel> contacts = navUtile.readContac();
        return contacts;
    }

//    页面小标题
    @Override
    public List<CommunalTitle> communalTitle() {
        List<CommunalTitle> communalTitles = navUtile.readCommunalTitle();
        return communalTitles;
    }
}

